import request from '@/utils/request'

//
export function reqMenuList(query) {
  return request({
    url: '/manager/assist/menuIndex',
    method: 'get',
    params: query
  })
}
///
export function reqRoleAllMenu(query) {
  return request({
    url: '/manager/api/roleAllMenu',
    method: 'get',
    params: query
  })
}
export function reqmenuDelById(id) {
  return request({
    url: '/manager/assist/menuDel?id=' + id,
    method: 'get',
  })
}
export function reqAddMenu(data) {
  return request({
    url: '/manager/assist/menuAdd' ,
    method: 'post',
    data,
  })
}
export function reqEditMenu(data) {
  return request({
    url: '/manager/assist/menuEdit' ,
    method: 'post',
    data,
  })
}
export function reqMenuInfoById(id) {
  return request({
    url: '/manager/assist/menuInfo?id=' + id,
    method: 'get',
  })
}


//流量主菜单管理,分页列表
export function reqMenuAdminList(query) {
  return request({
    url: '/manager/admin_Rbac/menuList',
    method: 'get',
    params: query
  })
}


export function reqRoleAllAdminMenu(query) {
  return request({
    url: '/manager/admin_Rbac/getMenus',
    method: 'get',
    params: query
  })
}
export function reqAdminmenuDelById(id) {
  return request({
    url: '/manager/admin_Rbac/menuDelete?id=' + id,
    method: 'get',
  })
}
export function reqAddAdminMenu(data) {
  return request({
    url: '/manager/admin_Rbac/menuadd' ,
    method: 'post',
    data,
  })
}
export function reqEditAdminMenu(data) {
  return request({
    url: '/manager/admin_Rbac/menuEdit' ,
    method: 'post',
    data,
  })
}
export function reqAdminMenuInfoById(id) {
  return request({
    url: '/manager/admin_Rbac/getMenuById?id=' + id,
    method: 'get',
  })
}
